import request from '@/utils/request'

// 查询大用户表日用量数据列表
export function listTerminalsdayfreezedb(query) {
    return request({
        url: '/datastatistics/terminalsdayfreezedb/list',
        method: 'get',
        params: query
    })
}

// 查询近30天小冻结数据（设备维度）列表
export function listThirtyDaysFlow(query) {
    return request({
        url: '/datastatistics/terminalsdayfreezedb/listThirtyDaysFlow',
        method: 'get',
        params: query
    })
}

export function listTerminalsDayRangeFreezeDbData(query) {
    return request({
        url: '/datastatistics/terminalsdayfreezedb/listRange',
        method: 'get',
        params: query
    })
}

// 查询大用户表日用量数据详细
export function getTerminalsdayfreezedb(Id) {
    return request({
        url: '/datastatistics/terminalsdayfreezedb/' + Id,
        method: 'get'
    })
}

// 新增大用户表日用量数据
export function addTerminalsdayfreezedb(data) {
    return request({
        url: '/datastatistics/terminalsdayfreezedb',
        method: 'post',
        data: data
    })
}

// 修改大用户表日用量数据
export function updateTerminalsdayfreezedb(data) {
    return request({
        url: '/datastatistics/terminalsdayfreezedb',
        method: 'put',
        data: data
    })
}

// 删除大用户表日用量数据
export function delTerminalsdayfreezedb(Id) {
    return request({
        url: '/datastatistics/terminalsdayfreezedb/' + Id,
        method: 'delete'
    })
}
